import Request from '@/axios/request'

export function getBanners(params) {
  return Request.get('banners', { params })
}

export function createBanner() {
  return Request.get('banners/create')
}

export function storeBanner(data) {
  return Request.post('banners', data)
}

export function updateBanner(id, data) {
  return Request.put(`banners/${id}`, data)
}

export function editBanner(id) {
  return Request.get(`banners/${id}/edit`)
}

export function destroyBanner(id) {
  return Request.delete(`banners/${id}`)
}
